<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <tr>
                    <td><?=translate('TITLE')?>:</td>
                    <td><input type="text" name="row[title]" id="title" size="25" value="<?= $row['title'] ?>" /></td>
                </tr>
                <tr>
                    <td><?=translate('CONTENT')?>:</td>
                    <td><textarea name="row[content]" id="content" cols="50" rows="5"><?= $row['content'] ?></textarea></td>
                </tr>
                <tr>
                    <td><?=translate('COLOR')?>:</td>
                    <td><input type="text" name="row[color]" id="color" size="25" value="<?= $row['color'] ?>" class="colorpicker" /></td>
                </tr>
                <tr>
                    <td><?=translate('AUTHOR')?>:</td>
                    <td><input type="text" name="row[author]" id="author" size="25" value="<?= $row['author'] ?>" /></td>
                </tr>
                <tr>
                    <td><?=translate('VERSION')?>:</td>
                    <td>
                        <textarea name="row[version]" id="version" cols="50" rows="5"><?= implode("\r\n", $row['version']) ?></textarea><a href="javascript:;" class="help" module="version"><?=translate('README')?></a>
                    </td>
                </tr>
                <tr>
                    <td><?=translate('STARTTIME')?>:</td>
                    <td><input type="text" name="row[starttime]" id="starttime" size="25" value="<?= $row['starttime'] ? get_datetime($row['starttime']) : 0 ?>" class="datepicker" showtime="true" /></td>
                </tr>
                <tr>
                    <td><?=translate('EXPIRETIME')?>:</td>
                    <td><input type="text" name="row[expiretime]" id="expiretime" size="25" value="<?= $row['expiretime'] ? get_datetime($row['expiretime']) : 0 ?>" class="datepicker" showtime="true" /></td>
                </tr>
                <tr>
                    <td><?=translate('STATUS')?>:</td>
                    <td><input type="radio" name="row[state]" value="1" <?= checkchecked(1, $row['state']) ?> /> <?=translate('NORMAL')?> <input type="radio" name="row[state]" value="0" <?= checkchecked(0, $row['state']) ?> /> <?=translate('HIDE')?></td>
                </tr>
                <tr>
                    <tr><td></td>
                        <td>
                            <input type="submit" value="<?=translate('SUBMIT')?>" id="submit"/> <input type="reset" value="<?=translate('RESET')?>" id="reset"/>
                        </td>
                    </tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form",function(){
                $.formValidator.initConfig({ formid: "#rowForm",submitonce:true});
                $("#title").formValidator({empty:false,onshow:'<?=translate('C_NOT_EMPTY')?>'}).inputValidator({min:1,onerrormin:'<?=translate('C_NOT_EMPTY')?>'});
                $("#content").formValidator({empty:false,onshow:'<?=translate('C_NOT_EMPTY')?>'}).inputValidator({min:1,onerrormin:'<?=translate('C_NOT_EMPTY')?>'});
                $("#color").formValidator({empty:true,onshow:''});
                $("#version").formValidator({empty:true,onshow:''});
                $("#author").formValidator({empty:true,onshow:'<?=translate('C_NOT_EMPTY')?>'}).inputValidator({min:1,onerrormin:'<?=translate('C_NOT_EMPTY')?>'});
                $("#version").formValidator({empty:true,onshow:'<?=translate('C_NOT_EMPTY')?>'}).inputValidator({min:1,onerrormin:'<?=translate('C_NOT_EMPTY')?>'});
                $("#starttime").formValidator({empty:false,onshow:'<?=translate('GENERAL_NOTICE_STARTTIME_TIPS')?>'});
                $("#expiretime").formValidator({empty:false,onshow:'<?=translate('GENERAL_NOTICE_EXPIRETIME_TIPS')?>'});
            });
        </script>
    </body>
</html>